package GIT;
import java.util.Scanner;
import static GIT.Judge.Judge;

public class QueryGrade {
    public static void information() {
        System.out.println("\n===查询学生成绩===");
        System.out.println("1.按学生姓名查询");
        System.out.println("2.按学生学号查询");
        System.out.println("3.按课程名称查询");
        System.out.println("请输入选项序号");
        Scanner sc = new Scanner(System.in);
        int choice = sc.nextInt();
        switch (choice) {
            case 1:
                System.out.println("请输入学生姓名");
                Judge();
                break;
            case 2:
                System.out.println("请输入学生学号");
                Judge();
                break;
            case 3:
                System.out.println("请输入课程名称");
                Judge();
                break;
            default:
                System.out.println("无效选项");
        }
    }
}

